<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="row" id="basics">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">基础信息</div>
                <div class="panel-body">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('企业名称')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-audit[company_name]" data-rule="required" data-msg-required="企业名称不得为空" class="form-control" name="audit[company_name]" type="text" value="{$enterpriseinfo.company_name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('所在城市')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <select id="c-city_id" data-rule="required;" class="form-control selectpicker" name="basic[city_id]">
                                {foreach $cities as $key=>$vo}
                                <option value="{$vo.city_id}" {in name="$vo.city_id" value="$enterpriseinfo.city_id"}selected{/in}>{$vo.city_name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('所属行业')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <select id="c-industry_category_id" data-rule="required;" class="form-control selectpicker" name="basic[industry_category_id]">
                                {foreach $industry_categories as $key=>$vo}
                                <option value="{$vo.id}" {in name="$vo.id" value="$enterpriseinfo.industry_category_id"}selected{/in}>{$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('公司性质')}:</label>
                        <div class="col-xs-12 col-sm-8">

                            <select id="c-company_type_id" data-rule="required;"  class="form-control selectpicker" name="basic[company_type_id]">
                                {foreach $company_types as $key=>$vo}
                                <option value="{$vo.id}" {in name="$vo.id" value="$enterpriseinfo.company_type_id"}selected{/in}>{$vo.name}</option>
                                {/foreach}
                            </select>

                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('公司规模')}:</label>
                        <div class="col-xs-12 col-sm-8">

                            <select id="c-company_scale_id" data-rule="required;" class="form-control selectpicker" name="basic[company_scale_id]">
                                {foreach $company_scales as $key=>$vo}
                                <option value="{$vo.id}" {in name="$vo.id" value="$enterpriseinfo.company_scale_id"}selected{/in}>{$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('联系人')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-contact_person" data-rule="required" data-msg-required="请输入联系人" class="form-control" name="basic[contact_person]" type="text" value="{$enterpriseinfo.contact_person}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-contact_phone" data-rule="required" data-msg-required="请输入联系电话" class="form-control" name="basic[contact_phone]" type="text" value="{$enterpriseinfo.contact_phone}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('联系邮箱')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-contact_email" data-rule="required" data-msg-required="请输入联系邮箱" class="form-control" name="basic[contact_email]" type="text" value="{$enterpriseinfo.contact_email}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('公司地址')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-address" data-rule="required" data-msg-required="请输入公司地址" class="form-control" name="basic[address]" type="text" value="{$enterpriseinfo.address}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('上传公司LOGO')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-logo" data-rule="required" class="form-control" size="50" name="basic[logo]" type="text" value="{$enterpriseinfo.logo}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-logo"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('营业执照')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-license_img" data-rule="required" class="form-control" size="50" name="audit[license_img]" type="text" value="{$enterpriseinfo.license_img}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-license_img" class="btn btn-danger plupload" data-input-id="c-license_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-license_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-license_img"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-license_img"></ul>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
    <div class="row" id="sale">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">其他信息</div>
                <div class="panel-body">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('展示标签')}:</label>
                        <div class="col-xs-12 col-sm-8">

                            <div class="checkbox">
                                {foreach name="$benefits" item="vo"}
                                <label for="basic[benefit_ids][]-{$key}"><input id="basic[benefit_ids][]-{$key}" name="basic[benefit_ids][]" type="checkbox" value="{$vo.id}" {:in_array($vo.id,$benefit_ids_arr)?'checked':''} /> {$vo.name}</label>
                                {/foreach}
                            </div>

                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('公司简介')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea name="basic[intro]" class="form-control" rows="8" placeholder="输入公司描述内容...（控制在200字内）">{$enterpriseinfo.intro|htmlentities}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('环境照片')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-environment_images" data-rule="required" class="form-control" size="50" name="basic[environment_images]" type="text" value="{$enterpriseinfo.environment_images}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-environment_images" class="btn btn-danger plupload" data-input-id="c-environment_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-environment_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-environment_images"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-environment_images"></ul>
                            <div style="font-size: 11px;color:#888;">首张照片将作为企业主页或店铺主页背景<br>建议至少上传3—6张照片</div>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>